<?php
/**
 *
 * User: wangshuai
 * Date: 2021/8/6
 * Time: 17:22
 * Email: <1076890579@qq.com>
 */

class controller
{
    public $mysql;
    public $redis;

    public function __construct($mysql, $redis)
    {
        $this->mysql = $mysql;
        $this->redis = $redis;
    }

    public function action()
    {
        $this->mysql->query();
        $this->redis->set();
    }
}